package com.dmap.admin.po;

import java.io.Serializable;

public class User implements Serializable {
    /**
     * 主键id
     * 表字段 : user.id
     */
    private Long id;

    /**
     * 用户账号
     * 表字段 : user.account
     */
    private String account;

    /**
     * 
     * 表字段 : user.name
     */
    private String name;

    /**
     * 用户呢称
     * 表字段 : user.nickname
     */
    private String nickname;

    /**
     * 密码
     * 表字段 : user.password
     */
    private String password;

    /**
     * 手机号
     * 表字段 : user.handphone
     */
    private String handphone;

    /**
     * 
     * 表字段 : user.email
     */
    private String email;

    /**
     *  性别：0保密（默认），1男，2女
     * 表字段 : user.sex
     */
    private Integer sex;

    /**
     * 
     * 表字段 : user.birthday
     */
    private Long birthday;

    /**
     * 省
     * 表字段 : user.province
     */
    private String province;

    /**
     * 市
     * 表字段 : user.city
     */
    private String city;

    /**
     * 职务
     * 表字段 : user.position
     */
    private String position;

    /**
     * 
     * 表字段 : user.company_id
     */
    private Long companyId;

    /**
     * 所在公司名称
     * 表字段 : user.company_name
     */
    private String companyName;

    /**
     * 公司类型：1.总公司， 2分公司
     * 表字段 : user.company_type
     */
    private Integer companyType;

    /**
     * 该条记录是由谁创建的
     * 表字段 : user.creator_id
     */
    private Long creatorId;

    /**
     * 最后编辑者id
     * 表字段 : user.editor_id
     */
    private Long editorId;

    /**
     * 创建者账号
     * 表字段 : user.creator_account
     */
    private String creatorAccount;

    /**
     * 最后更新者账号
     * 表字段 : user.editor_account
     */
    private String editorAccount;

    /**
     * 
     * 表字段 : user.department_id
     */
    private Long departmentId;

    /**
     * 
     * 表字段 : user.department_name
     */
    private String departmentName;

    /**
     * 用户头像url
     * 表字段 : user.head_image_url
     */
    private String headImageUrl;

    /**
     * 状态：1正常，2禁用
     * 表字段 : user.status
     */
    private Integer status;

    /**
     * 登陆错误数
     * 表字段 : user.login_wrong_num
     */
    private Integer loginWrongNum;

    /**
     * 用户类型：1.公司管理员，2.部门管理员，3.普通用户
     * 表字段 : user.user_type
     */
    private Integer userType;

    /**
     * 删除状态: 1正常，2已删除
     * 表字段 : user.delete_status
     */
    private Integer deleteStatus;

    /**
     * 创建时间
     * 表字段 : user.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : user.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table user
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user
     *
     * @mbggenerated
     */
    public User(Long id, String account, String name, String nickname, String password, String handphone, String email, Integer sex, Long birthday, String province, String city, String position, Long companyId, String companyName, Integer companyType, Long creatorId, Long editorId, String creatorAccount, String editorAccount, Long departmentId, String departmentName, String headImageUrl, Integer status, Integer loginWrongNum, Integer userType, Integer deleteStatus, Long createTime, Long updateTime) {
        this.id = id;
        this.account = account;
        this.name = name;
        this.nickname = nickname;
        this.password = password;
        this.handphone = handphone;
        this.email = email;
        this.sex = sex;
        this.birthday = birthday;
        this.province = province;
        this.city = city;
        this.position = position;
        this.companyId = companyId;
        this.companyName = companyName;
        this.companyType = companyType;
        this.creatorId = creatorId;
        this.editorId = editorId;
        this.creatorAccount = creatorAccount;
        this.editorAccount = editorAccount;
        this.departmentId = departmentId;
        this.departmentName = departmentName;
        this.headImageUrl = headImageUrl;
        this.status = status;
        this.loginWrongNum = loginWrongNum;
        this.userType = userType;
        this.deleteStatus = deleteStatus;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user
     *
     * @mbggenerated
     */
    public User() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.id
     *
     * @return the value of user.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.id
     *
     * @param id the value for user.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.account
     *
     * @return the value of user.account
     *
     * @mbggenerated
     */
    public String getAccount() {
        return account;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.account
     *
     * @param account the value for user.account
     *
     * @mbggenerated
     */
    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.name
     *
     * @return the value of user.name
     *
     * @mbggenerated
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.name
     *
     * @param name the value for user.name
     *
     * @mbggenerated
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.nickname
     *
     * @return the value of user.nickname
     *
     * @mbggenerated
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.nickname
     *
     * @param nickname the value for user.nickname
     *
     * @mbggenerated
     */
    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.password
     *
     * @return the value of user.password
     *
     * @mbggenerated
     */
    public String getPassword() {
        return password;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.password
     *
     * @param password the value for user.password
     *
     * @mbggenerated
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.handphone
     *
     * @return the value of user.handphone
     *
     * @mbggenerated
     */
    public String getHandphone() {
        return handphone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.handphone
     *
     * @param handphone the value for user.handphone
     *
     * @mbggenerated
     */
    public void setHandphone(String handphone) {
        this.handphone = handphone == null ? null : handphone.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.email
     *
     * @return the value of user.email
     *
     * @mbggenerated
     */
    public String getEmail() {
        return email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.email
     *
     * @param email the value for user.email
     *
     * @mbggenerated
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.sex
     *
     * @return the value of user.sex
     *
     * @mbggenerated
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.sex
     *
     * @param sex the value for user.sex
     *
     * @mbggenerated
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.birthday
     *
     * @return the value of user.birthday
     *
     * @mbggenerated
     */
    public Long getBirthday() {
        return birthday;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.birthday
     *
     * @param birthday the value for user.birthday
     *
     * @mbggenerated
     */
    public void setBirthday(Long birthday) {
        this.birthday = birthday;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.province
     *
     * @return the value of user.province
     *
     * @mbggenerated
     */
    public String getProvince() {
        return province;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.province
     *
     * @param province the value for user.province
     *
     * @mbggenerated
     */
    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.city
     *
     * @return the value of user.city
     *
     * @mbggenerated
     */
    public String getCity() {
        return city;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.city
     *
     * @param city the value for user.city
     *
     * @mbggenerated
     */
    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.position
     *
     * @return the value of user.position
     *
     * @mbggenerated
     */
    public String getPosition() {
        return position;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.position
     *
     * @param position the value for user.position
     *
     * @mbggenerated
     */
    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.company_id
     *
     * @return the value of user.company_id
     *
     * @mbggenerated
     */
    public Long getCompanyId() {
        return companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.company_id
     *
     * @param companyId the value for user.company_id
     *
     * @mbggenerated
     */
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.company_name
     *
     * @return the value of user.company_name
     *
     * @mbggenerated
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.company_name
     *
     * @param companyName the value for user.company_name
     *
     * @mbggenerated
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.company_type
     *
     * @return the value of user.company_type
     *
     * @mbggenerated
     */
    public Integer getCompanyType() {
        return companyType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.company_type
     *
     * @param companyType the value for user.company_type
     *
     * @mbggenerated
     */
    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.creator_id
     *
     * @return the value of user.creator_id
     *
     * @mbggenerated
     */
    public Long getCreatorId() {
        return creatorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.creator_id
     *
     * @param creatorId the value for user.creator_id
     *
     * @mbggenerated
     */
    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.editor_id
     *
     * @return the value of user.editor_id
     *
     * @mbggenerated
     */
    public Long getEditorId() {
        return editorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.editor_id
     *
     * @param editorId the value for user.editor_id
     *
     * @mbggenerated
     */
    public void setEditorId(Long editorId) {
        this.editorId = editorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.creator_account
     *
     * @return the value of user.creator_account
     *
     * @mbggenerated
     */
    public String getCreatorAccount() {
        return creatorAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.creator_account
     *
     * @param creatorAccount the value for user.creator_account
     *
     * @mbggenerated
     */
    public void setCreatorAccount(String creatorAccount) {
        this.creatorAccount = creatorAccount == null ? null : creatorAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.editor_account
     *
     * @return the value of user.editor_account
     *
     * @mbggenerated
     */
    public String getEditorAccount() {
        return editorAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.editor_account
     *
     * @param editorAccount the value for user.editor_account
     *
     * @mbggenerated
     */
    public void setEditorAccount(String editorAccount) {
        this.editorAccount = editorAccount == null ? null : editorAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.department_id
     *
     * @return the value of user.department_id
     *
     * @mbggenerated
     */
    public Long getDepartmentId() {
        return departmentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.department_id
     *
     * @param departmentId the value for user.department_id
     *
     * @mbggenerated
     */
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.department_name
     *
     * @return the value of user.department_name
     *
     * @mbggenerated
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.department_name
     *
     * @param departmentName the value for user.department_name
     *
     * @mbggenerated
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName == null ? null : departmentName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.head_image_url
     *
     * @return the value of user.head_image_url
     *
     * @mbggenerated
     */
    public String getHeadImageUrl() {
        return headImageUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.head_image_url
     *
     * @param headImageUrl the value for user.head_image_url
     *
     * @mbggenerated
     */
    public void setHeadImageUrl(String headImageUrl) {
        this.headImageUrl = headImageUrl == null ? null : headImageUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.status
     *
     * @return the value of user.status
     *
     * @mbggenerated
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.status
     *
     * @param status the value for user.status
     *
     * @mbggenerated
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.login_wrong_num
     *
     * @return the value of user.login_wrong_num
     *
     * @mbggenerated
     */
    public Integer getLoginWrongNum() {
        return loginWrongNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.login_wrong_num
     *
     * @param loginWrongNum the value for user.login_wrong_num
     *
     * @mbggenerated
     */
    public void setLoginWrongNum(Integer loginWrongNum) {
        this.loginWrongNum = loginWrongNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.user_type
     *
     * @return the value of user.user_type
     *
     * @mbggenerated
     */
    public Integer getUserType() {
        return userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.user_type
     *
     * @param userType the value for user.user_type
     *
     * @mbggenerated
     */
    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.delete_status
     *
     * @return the value of user.delete_status
     *
     * @mbggenerated
     */
    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.delete_status
     *
     * @param deleteStatus the value for user.delete_status
     *
     * @mbggenerated
     */
    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.create_time
     *
     * @return the value of user.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.create_time
     *
     * @param createTime the value for user.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.update_time
     *
     * @return the value of user.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.update_time
     *
     * @param updateTime the value for user.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", account=").append(account);
        sb.append(", name=").append(name);
        sb.append(", nickname=").append(nickname);
        sb.append(", password=").append(password);
        sb.append(", handphone=").append(handphone);
        sb.append(", email=").append(email);
        sb.append(", sex=").append(sex);
        sb.append(", birthday=").append(birthday);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", position=").append(position);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", companyType=").append(companyType);
        sb.append(", creatorId=").append(creatorId);
        sb.append(", editorId=").append(editorId);
        sb.append(", creatorAccount=").append(creatorAccount);
        sb.append(", editorAccount=").append(editorAccount);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", departmentName=").append(departmentName);
        sb.append(", headImageUrl=").append(headImageUrl);
        sb.append(", status=").append(status);
        sb.append(", loginWrongNum=").append(loginWrongNum);
        sb.append(", userType=").append(userType);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}